feat: support dropping multiple types with schema.dropType(), cascade. - #1516
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
commit: |
|
@igalklebanov Will this work for compatibility? I've never really looked at any Kysely plugins or compilers, so I'm not quite sure what I'm doing. |
It's perfectly fine to ask and not get things right the first time. I'm more than happy to help! A library operates within an ecosystem. Public APIs are important, and smoothening transitions is something that needs to be thought about. When you rename a property in an operation node or change the signature of the function that creates such nodes - that's a breaking change that might affect (custom) dialects (their compilers) and plugins, potentially making them unuseable with the next version of this library. Currently, the ecosystem knows of What we can do:
|
|
This should now be ready for re-review. Thanks for the help :) |
d6ee031 to
00435af
Compare
igalklebanov
left a comment
There was a problem hiding this comment.
Removed .restrict() to align with drop view.
Applied my suggestions.
Ran formatter.
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Closes #1508
This PR adds support for arrays as input to the
schema.dropType()method, e.g.While I was in the area I also added
.cascade()andmethods, to completely support Postgres'.restrict()DROP TYPE. I based the implementation on the one forDropConstraintNode.I only added functionality tests as the existing
dropType()method didn't have type tests and I wasn't sure how to go about writing them.